﻿using System;
using System.Threading;
using AOPDemo.Domain;
using AOPDemo.Interfaces;

namespace AOPDemo.Services
{
    public class ConsoleLoggingService : ILoggingService
    {
        #region Implementation of ILoggingService

        public void LogMessage(LogLevel logLevel, string message)
        {
            Console.WriteLine("[{0}] {1}: {2}", Thread.CurrentThread.ManagedThreadId, logLevel, message);
        }

        #endregion
    }
}